<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml"
      xmlns:v-on="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <title>商品页面</title>
    <link rel="stylesheet" href="../lib/basic/css/bootstrap.min.css">
    <link href="../lib/AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css"/>
    <link href="../lib/AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css"/>
    <link href="../lib/basic/css/demo.css" rel="stylesheet" type="text/css"/>
    <link type="text/css" href="../home/css/optstyle.css" rel="stylesheet"/>
    <link href="../home/css/seastyle.css" rel="stylesheet" type="text/css"/>
    <link type="text/css" href="../home/css/style.css" rel="stylesheet"/>
    <link href="../home/css/selldetail.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="../lib/basic/js/jquery-1.7.min.js"></script>
    <link rel="stylesheet" type="text/css" href="../lib/elementui/1.4.3/theme-default/index.css">
    <script type="text/javascript" src="../lib/basic/js/quick_links.js"></script>
    <script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <script type="text/javascript" src="../lib/AmazeUI-2.4.2/assets/js/amazeui.js"></script>
    <script type="text/javascript" src="../home/js/jquery.imagezoom.min.js"></script>
    <script type="text/javascript" src="../home/js/jquery.flexslider.js"></script>
    <script src="../home/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../lib/vue/2.4.2/vue.js"></script>
    <script src="../lib/elementui/1.4.3/index.js"></script>
    <script src="../charge/moment.js"></script>
</head>
    <div id="selldetail">

        <!--顶部导航条 -->
        <iframe  MARGINWIDTH="0" MARGINHEIGHT="0" height="50px" scrolling="no"  width="100%" src="../home/otherHead.html"></iframe>

        <!--悬浮搜索框-->

        <div class="clear"></div>
        <b class="line" style="top:105px;"></b>
        <div class="listMain">
            <!--分类-->
            <div class="nav-table">
                <a href="javascript:void(0);">
                    <div class="long-title"><span class="all-goods">全部分类</span></div>
                </a>
                <div class="nav-cont">
                    <ul>

                        <li class="qc" v-for="site in goodsType">
                            <a v-bind:href="site.href">{{ site.name }}</a>
                        </li>
                    </ul>
                </div>
            </div>
            <!--放大镜-->
            <div class="item-inform" style="margin-top: 30px;border-bottom: dashed 1px #d2364c;">
                <div class="clearfixLeft" id="clearcontent">

                    <div class="box">

                        <div class="tb-booth tb-pic tb-s310">
                            <a><img v-bind:src="sellinformation.companyLogo" :title="sellinformation.companyName" alt="细节展示放大镜特效"
                                                             rel="../images/001.jpg" class="jqzoom"/></a>
                        </div>
                    </div>

                    <div class="clear"></div>
                </div>

                <div class="clearfixRight">

                    <!--规格属性-->
                    <!--名称-->
                    <div class="tb-detail-hd">
                        <h1 style="font-family: 'Adobe 宋体 Std L';font-size: 20px;word-break: break-all">{{sellinformation.companyName}}</h1>
                    </div>
                    <div class="tb-detail-list">
                        <!--价格-->
                        <ul class="tb-detail-price" style="padding-top: 10px;height:200px;">
                            <li style="float:left ;width: 300px;">注册时间：<span style="font-size: 23px;color: red;">{{sellinformation.creationTime}}</span>
                            </li>
                            <br><br>
                            <li style="float:left ">联系电话：{{sellinformation.tel}}</li>
                            <li style="float:left ;margin-left: 130px;">邮箱：{{sellinformation.mail}}</li>
                            <br><br>
                            <li style="float:left;width: 150px;overflow: hidden">经营模式：{{sellinformation.businessModel}}</li>
                            <li style="float:left;margin-left: 135px;" >公司地址：{{sellinformation.affiliatedRegional}}</li><br><br>
                            <li style="float:left ;" v-if="sellinformation.type==0">是否入围：未入围</li>
                            <li style="float:left ;" v-if="sellinformation.type==1">是否入围：已入围</li>
                            <div class="clear"></div>
                        </ul>
                    </div>

                    <div class="pay">
                        <div class="pay-opt">
                            <a href="home.html"><span class="am-icon-home am-icon-fw">首页</span></a>
                            <a><span class="am-icon-heart am-icon-fw">收藏</span></a>

                        </div>
                    </div>

                </div>

                <div class="clear"></div>

            </div>
            <div class="clear"></div>
            <div>
                <ul v-if="product.length==0" style="width: 130px;margin: auto;margin-top: 100px;">该商家暂无商品信息</ul>
                <ul id="ul" style="width:1200px; height:800px;margin:auto;margin-top:20px; position: relative">
                   <li div v-on:mouseover="over(sire.id)" v-on:mouseout="out(sire.id);" v-for="sire in product" style="position: relative">
                            <a href="javascript:void(0);"><img v-on:click="Ontouch(sire) " :title="sire.commodityName.slice(0,24)" v-bind:src="sire.masterMap"/></a>
                            <p id="p1">
                                <span id="spanpan">¥{{sire.commodityMakPrc}}</span>
                                <span id="spanpan1">销量{{sire.salesGross}}</span>
                            </p>
                            <p id="p2">
                                <span>{{sire.commodityName}}</span>
                            </p><br>
                                <div id="div1">{{sellinformation.companyName}}</div>

                       <ul id="div2"  style="margin-top: 10px;display: none;" v-bind:id="(sire.id)">
                           <li id="div2-1" style="float: left" :plain="true">
                               <a href="javascript:;"><span v-on:click="onTouchAdd(sire)" id="spanpan2">加入购物车</span></a>
                           </li>
                           <li id="div2-2" style="float: left">
                               <input id="input1" class="on_show" v-on:click="on_showClick(sire,'on_showClick')" type="checkbox" style="width: 15px;"/>
                               <span id="spanpan3">比较</span>
                           </li>
                       </ul>
                           
                    </li>
                </ul>
            </div>
            <div class="clear"></div>
            <iframe  MARGINWIDTH="0" MARGINHEIGHT="0" height="50px" scrolling="no"  width="100%" src="../home/otherFoot.html"></iframe>
        </div>
        <!--菜单 -->
        <div class=tip>
            <div id="sidebar">
                <div id="wrap">
                    <div class="quick_toggle">
                        <li class="qtitem">
                            <a href="#"><span class="kfzx"></span></a>
                            <div class="mp_tooltip">客服中心<i class="icon_arrow_right_black"></i></div>
                        </li>
                        <!--二维码-->
                        <li class="qtitem">
                            <a href="#none"><span class="mpbtn_qrcode"></span></a>
                            <div class="mp_qrcode" style="display:none;"><img src="../images/weixin_code_145.png"/><i
                                    class="icon_arrow_white"></i></div>
                        </li>
                        <li class="qtitem">
                            <a href="#top" class="return_top"><span class="top"></span></a>
                        </li>
                    </div>
                    <!--回到顶部 -->
                    <div id="quick_links_pop" class="quick_links_pop hide"></div>
                </div>
            </div>
        </div>
        <!--对比-->
        <div id="contrast" style="background-color: #f9f9f9; margin:auto;display: none;position: sticky;bottom: 50px;width: 600px;height: 150px;z-index: 9999">
            <div style="border: 1px solid ghostwhite;width: 100%;height: 100%">
                <div style="float: left;border: 1px solid silver;height: 100%"
                     v-for="contrast in contrastInformation">
                    <div style="width: 100px;">
                        <div><img id="src_2" v-bind:src="contrast.masterMap"></div>
                    </div>
                    <div style="width: 100px;text-align: center">
                        <span id="font_2">{{ contrast.commodityName }}</span>
                    </div>
                </div>

                <div style="width: 88px;height:100%;border: 1px solid silver;float: right">
                    <div id="cl" style="padding-top: 1px;padding-left: 73px;"
                         v-on:click="on_hideClick">
                        <span><a href="javascript:void(0);">X</a></span>
                    </div>
                    <div style="padding-left: 16px;padding-top: 40px">
                        <button class="btn btn-primary btn-sm" data-toggle="modal" data-target="#myModal"
                                style="padding: 4px 12px;">
                            对比
                        </button>
                        <!-- 模态框（Modal） -->
                    </div>
                </div>

            </div>

        </div>
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
             aria-hidden="true">
            <div class="modal-dialog" style="width: 55%;margin: auto">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                            &times;
                        </button>
                        <h4 class="modal-title" id="myModalLabel" align="center">
                            商品对比信息
                        </h4>
                    </div>
                    <div class="modal-body">
                        <!--<table class="table table-bordered" style="margin: auto;table-layout: fixed" >
                            <thead style="align-content: center">
                            <tr>
                                <td>货物名称</td>
                                <td>市场价格</td>
                                <td>入围价格</td>
                                <td>商品总销量</td>
                                <td>品牌信息</td>
                                <td>商品型号</td>
                                <td>供应商</td>
                                <td>生产厂商</td>
                                <td>操&nbsp;&nbsp;&nbsp;&nbsp;作</td>
                            </tr>
                            </thead>
                            <tbody>
                            <tr v-for="contrast in contrastInformation" id="bootstrapTr">
                                <td>{{contrast.commodityName}}</td>
                                <td>{{contrast.commodityMakPrc}}</td>
                                <td>{{contrast.commodityTrcPrc}}</td>
                                <td>{{contrast.salesGross}}</td>
                                <td>{{contrast.brand}}</td>
                                <td>{{contrast.model}}</td>
                                <td>{{contrast.businessesName}}</td>
                                <td>{{contrast.manufacturer}}</td>
                                <td><button type="button" class="am-btn am-btn-secondary am-radius"
                                            v-on:click="onAddDataBefore(contrast)">加入购物车
                                </button></td>
                            </tr>
                            </tbody>
                        </table>-->
                        <template>
                            <el-table :data="contrastInformation" border show-overflow-tooltip   align="center"   >
                                <el-table-column  prop="commodityName" label="货物名称" show-overflow-tooltip align="center"></el-table-column>
                                <el-table-column  prop="commodityMakPrc" label="市场价格" show-overflow-tooltip align="center"></el-table-column>
                                <el-table-column  prop="commodityTrcPrc" label="入围价格" show-overflow-tooltip align="center"></el-table-column>
                                <el-table-column  prop="salesGross" label="总销量" show-overflow-tooltip align="center"></el-table-column>
                                <el-table-column  prop="brand" label="品牌信息" show-overflow-tooltip align="center"></el-table-column>
                                <el-table-column  prop="model" label="商品型号" show-overflow-tooltip align="center"></el-table-column>
                                <el-table-column  prop="businessesName" label="供应商" show-overflow-tooltip align="center"></el-table-column>
                                <el-table-column  prop="manufacturer" label="生产厂商" show-overflow-tooltip align="center"></el-table-column>
                                <el-table-column label="操作" align="center">
                                    <template scope="scope">
                                        <el-button type="success" size="small " v-on:click="onAddDataBefore(scope.row)">加入购物车</el-button>
                                    </template>
                                </el-table-column>
                            </el-table>
                        </template>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal -->
        </div>
    </div>
    </body>
    <script type="text/javascript" src="../lib/basic/js/quick_links.js"></script>
    <script src="../charge/selldetail.js"></script>
    <script type="text/javascript">
        $('#myModal').on('shown.bs.modal', function (e) {
            // 关键代码，如没将modal设置为 block，则$modala_dialog.height() 为零
            $(this).css('display', 'block');
            var modalHeight = $(window).width() / 2 - $('#myModal .modal-dialog').width() / 2;
            $(this).find('.modal-dialog').css({
                'margin-left': modalHeight
            });
        });
    </script>


</html>
